package cn.dw.mm.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Service;

import cn.dw.mm.domain.Itorder;
import cn.dw.mm.mapper.OrderMapper;
import cn.dw.mm.service.OrderService;


@Service
public class OrderServiceImpl implements OrderService {

	@Autowired
	private OrderMapper orderMapper;
	
	public int deleteByPrimaryKey(Integer id) {
		// TODO Auto-generated method stub
		return orderMapper.deleteByPrimaryKey(id);
	}

	public int insert(Itorder record) {
		// TODO Auto-generated method stub
		return orderMapper.insert(record);
	}

	public int insertSelective(Itorder record) {
		// TODO Auto-generated method stub
		return orderMapper.insertSelective(record);
	}

	public Itorder selectByPrimaryKey(Integer id) {
		// TODO Auto-generated method stub
		return orderMapper.selectByPrimaryKey(id);
	}

	public int updateByPrimaryKeySelective(Itorder record) {
		// TODO Auto-generated method stub
		return orderMapper.updateByPrimaryKeySelective(record);
	}

	public int updateByPrimaryKey(Itorder record) {
		// TODO Auto-generated method stub
		return orderMapper.updateByPrimaryKey(record);
	}

	@Override
	public List<Itorder> selectAll(Itorder order) {
		// TODO Auto-generated method stub
		return orderMapper.setAll(order);
	}

}
